package com.heima.dorm_system;

public class DormitoryRoom {
    private String roomNumber;
    private String roomType;
    private String isOccupied;
    private Student occupant;

    public DormitoryRoom() {
    }

    public DormitoryRoom(String roomNumber, String roomType, String isOccupied, Student occupant) {
        this.roomNumber = roomNumber;
        this.roomType = roomType;
        this.isOccupied = isOccupied;
        this.occupant = occupant;
    }

    public String getRoomNumber() {
        return roomNumber;
    }

    public void setRoomNumber(String roomNumber) {
        this.roomNumber = roomNumber;
    }

    public String getRoomType() {
        return roomType;
    }

    public void setRoomType(String roomType) {
        this.roomType = roomType;
    }

    public String getIsOccupied() {
        return isOccupied;
    }

    public void setIsOccupied(String isOccupied) {
        this.isOccupied = isOccupied;
    }
    public void occupyRoom(){

    }
    public void vacateRoom(){

    }
    public void display(){
        System.out.println("房间号: " + roomNumber+"房间类型:"+roomType+"房间状态:"+isOccupied +"入住人:"+occupant.getName());
    }
}
